package org.server.dao;

import org.pojo.User;
import org.pojo.UserMeta;

public interface IUserDao
{
	public boolean isExistUsername(String username) throws Exception;
	public String getPasswordByUsername(String username) throws Exception;
	public void saveUser(User user) throws Exception;
	public User loadUserByUsername(String username)  throws Exception;
	public User loadUserById(int id)  throws Exception;
	public User loadUserByName(String nama)  throws Exception;
	public void deleteUserById(String userid)  throws Exception;
	public void deleteUserByName(String username)  throws Exception;
	public void userUpdate(User user)  throws Exception;//已经存在，则修改用户的相关信息即可；
	public void updatePassword(User user) throws Exception;
	public void updateUserMetaDate(UserMeta um)  throws Exception;
	public User loadFriendsByUserame(String nama) throws Exception;
}